-- GENERATED SPELL FOR [Rith] --


function spell0_31196(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(61044,pUnit)
pUnit:RegisterEvent('Sorts_31196', 15310, 1)
end

function spell1_31196(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(58461,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31196', 30288, 1)
end

function Sorts_31196(pUnit, Event)
local choix_sorts_31196 = math.random(0, 1)
if choix_sorts_31196 == 0 then
pUnit:RegisterEvent('spell0_31196', 1, 1)
end
if choix_sorts_31196 == 1 then
pUnit:RegisterEvent('spell1_31196', 1, 1)
end
end

function mob31196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31196', math.random(1500, 3000), 1)
end

function mob31196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31196, 1, 'mob31196_Action')
RegisterUnitEvent(31196, 2, 'mob31196_Leave')
RegisterUnitEvent(31196, 3, 'mob31196_Kill')
RegisterUnitEvent(31196, 4, 'mob31196_Die')
